SetTitleMatchMode 2
i=1
while i<=30
{
WinActivate,Microsoft Outlook 
WinWaitActive,Microsoft Outlook 
Send, {ENTER}
Send, {CTRLDOWN}ac{CTRLUP}{ALTDOWN}{F4}{ALTUP}
Send, {DEL}
WinActivate, Microsoft OneNote, 
WinWaitActive,  Microsoft OneNote, 
Send, {CTRLDOWN}v{CTRLUP}{ENTER}{ENTER}
i++
}

